package com.newviews.tcmip.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 中草药-成分关系表
 * </p>
 *
 * @author lxc
 * @since 2024-03-08
 */
@Data
@TableName("etcm_herb_herb")
@ApiModel(value = "EtcmHerbHerbPo", description = "中草药-中草药关系表")
public class EtcmHerbHerbPo implements Serializable{

private static final long serialVersionUID=1L;

    @ApiModelProperty("中草药Id，外键")
    @TableField("herb_code")
    private String herbCode;
    @ApiModelProperty("中草药Id，外键")
    @TableField("target_herb_code")
    private String targetHerbCode;
    @TableField("herb_herb_distance")
    private String herbHerbDistance;
    @TableField("p_value")


    /**
     *
     */
    @TableId("id")
    private String id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 创建人id
     */
    @ApiModelProperty("创建人id")
    @TableField("create_user_id")
    private String createUserId;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField("op_time")
    private LocalDateTime opTime;

    /**
     * 修改人id
     */
    @ApiModelProperty("修改人id")
    @TableField("op_user_id")
    private String opUserId;

    /**
     * 状态【0-无效；1-有效；2-已删除】
     */
    @ApiModelProperty("状态【0-无效；1-有效；2-已删除】")
    @TableField("status")
    private Integer status;

    private String pValue;
    @TableField(exist = false)
    private String herbExCon;
    @TableField(exist = false)
    private String herbZhName;
    @TableField(exist = false)
    private String herbEnName;
    @TableField(exist = false)
    private String targetHerbEnName;
    @TableField(exist = false)
    private String targetHerbZhName;


    /**
     *
     */
    public static final String ID ="id";

    /**
     * 创建时间
     */
    public static final String CREATE_TIME ="create_time";

    /**
     * 创建人id
     */
    public static final String CREATE_USER_ID ="create_user_id";

    /**
     * 修改时间
     */
    public static final String OP_TIME ="op_time";

    /**
     * 修改人id
     */
    public static final String OP_USER_ID ="op_user_id";

    /**
     * 状态【0-无效；1-有效；2-已删除】
     */
    public static final String STATUS ="status";

    /**
     * 中草药Id，外键
     */
    public static final String HERB_ID ="herb_id";

    /**
     * 组成成分Id，外键
     */
    public static final String INGR_ID ="ingr_id";

        }
